/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.knet.sp.ncrm.modules.sys.customerstatusdetail.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.hibernate.validator.constraints.Length;

import java.util.Date;

import cn.knet.sp.ncrm.common.persistence.DataEntity;

/**
 * 客户区域Entity
 *
 * @author zhangbin
 * @version 2015 -08-28
 */
public class CustomerStatusDetail extends DataEntity<CustomerStatusDetail> {

	private static final long serialVersionUID = 1L;
	private String causeDesc;        // 原因描述/详细信息
	private String customerStatusId;        // 状态ID关联CUSTOMER_STATUS表
	private Date dateCreated;        // 创建时间
	private Date lastUpdated;        // 更新时间
	private Long version;        // 版本

	public CustomerStatusDetail() {
		super();
	}

	public CustomerStatusDetail(String id) {
		super(id);
	}

	@Length(min = 1, max = 512, message = "原因描述/详细信息长度必须介于 1 和 1024 之间")
	public String getCauseDesc() {
		return causeDesc;
	}

	public void setCauseDesc(String causeDesc) {
		this.causeDesc = causeDesc;
	}

	@Length(min = 1, max = 64, message = "状态ID关联必须介于 1 和 64 之间")
	public String getCustomerStatusId() {
		return customerStatusId;
	}

	public void setCustomerStatusId(String customerStatusId) {
		this.customerStatusId = customerStatusId;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getLastUpdated() {
		return lastUpdated;
	}

	public void setLastUpdated(Date lastUpdated) {
		this.lastUpdated = lastUpdated;
	}

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

}